/// 实体元信息常用名
///
/// 作者: noear
/// 自 2.0 起
pub mod entity_metas {
    /// 协议版本号
    pub const META_SOCKETD_VERSION: &str = "Socket.D";

    /// 发起端真实IP
    #[deprecated(note = "Use META_X_IP instead")]
    pub const META_X_REAL_IP: &str = "X-Real-IP";

    /// 发起端真实IP
    pub const META_X_IP: &str = "X-IP";

    /// 负载均衡哈希
    pub const META_X_HASH: &str = "X-Hash";

    /// 负载均衡哈希
    #[deprecated(note = "Use META_X_HASH instead")]
    pub const META_X_Hash: &str = "X-Hash";

    /// 不限制流量
    pub const META_X_UNLIMITED: &str = "X-Unlimited";

    /// 数据长度
    pub const META_DATA_LENGTH: &str = "Data-Length";

    /// 数据类型
    pub const META_DATA_TYPE: &str = "Data-Type";

    /// 数据分片索引
    pub const META_DATA_FRAGMENT_IDX: &str = "Data-Fragment-Idx";

    /// 数据分片总数
    pub const META_DATA_FRAGMENT_TOTAL: &str = "Data-Fragment-Total";

    /// 数据描述之文件名
    pub const META_DATA_DISPOSITION_FILENAME: &str = "Data-Disposition-Filename";

    /// 数据范围开始（相当于分页）
    pub const META_RANGE_START: &str = "Data-Range-Start";

    /// 数据范围长度
    pub const META_RANGE_SIZE: &str = "Data-Range-Size";
}
